<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css优先级</title>
    <style>
        div {
            color: red!important;
        }

        .first {
            color: pink;
        }

        #gre {
            color: green;
        }
    </style>
</head>
<body>
    <div class="first" id="gre" style="color: blue;">你笑起来真好看。</div>
    <!-- 继承，通配《元素选择《类选择，伪类《id《行内样式《！important -->
</body>
</html>